com.atlassian.jira.rpc.soap.util
Class SoapUtilsBean

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.util.SoapUtilsBean

public class SoapUtilsBean
extends java.lang.Object


Field Summary
private  JiraAuthenticationContext authenticationContext
           
private  FieldLayoutManager fieldLayoutManager
           
private  FieldManager fieldManager
           
private static Logger log
           
private  UpdateFieldsHelperBean updateFieldsHelperBean
           
 
Constructor Summary
SoapUtilsBean(FieldLayoutManager fieldLayoutManager, FieldManager fieldManager, UpdateFieldsHelperBean updateFieldsHelperBean, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 RemoteField[] convertFieldsToRemoteFields(java.util.Collection fields)
           
 RemoteField[] getFieldsForEdit(User user, Issue issueObject)
           
 boolean isVisible(GenericValue issue, java.lang.String fieldname)
          Deprecated. Please use #isVisible(com.atlassian.jira.issue.Issue, String) instead.
 boolean isVisible(Issue issue, java.lang.String fieldname)
           
 java.util.Map mapFieldValueToMap(RemoteFieldValue[] actionParams)
           
 ExternalComment mapRemoteCommentToExternalComment(RemoteComment remoteComment)
           
 User setRemoteUserInJira(User user)
          This will set the user into the JIRA authentication context (ThreadLocal) and return the prevous user who was in there.
 void updateIssue(MutableIssue issueObject, OperationContext operationContext, User user, ErrorCollection errors, I18nHelper i18n)
           
 void validate(Issue issueObject, OperationContext operationContext, java.util.Map actionParams, User user, ErrorCollection errors, I18nHelper i18n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final Logger log

fieldLayoutManager

private final FieldLayoutManager fieldLayoutManager

fieldManager

private final FieldManager fieldManager

updateFieldsHelperBean

private final UpdateFieldsHelperBean updateFieldsHelperBean

authenticationContext

private final JiraAuthenticationContext authenticationContext
Constructor Detail

SoapUtilsBean

public SoapUtilsBean(FieldLayoutManager fieldLayoutManager,
                     FieldManager fieldManager,
                     UpdateFieldsHelperBean updateFieldsHelperBean,
                     JiraAuthenticationContext authenticationContext)
Method Detail

isVisible

public boolean isVisible(GenericValue issue,
                         java.lang.String fieldname)
                  throws FieldLayoutStorageException
Deprecated. Please use #isVisible(com.atlassian.jira.issue.Issue, String) instead.

Parameters:
issue -
fieldname -
Returns:
Throws:
FieldLayoutStorageException

isVisible

public boolean isVisible(Issue issue,
                         java.lang.String fieldname)
                  throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

mapRemoteCommentToExternalComment

public ExternalComment mapRemoteCommentToExternalComment(RemoteComment remoteComment)

convertFieldsToRemoteFields

public RemoteField[] convertFieldsToRemoteFields(java.util.Collection fields)

mapFieldValueToMap

public java.util.Map mapFieldValueToMap(RemoteFieldValue[] actionParams)

updateIssue

public void updateIssue(MutableIssue issueObject,
                        OperationContext operationContext,
                        User user,
                        ErrorCollection errors,
                        I18nHelper i18n)
                 throws RemoteException
Throws:
RemoteException

validate

public void validate(Issue issueObject,
                     OperationContext operationContext,
                     java.util.Map actionParams,
                     User user,
                     ErrorCollection errors,
                     I18nHelper i18n)
              throws RemoteException
Throws:
RemoteException

getFieldsForEdit

public RemoteField[] getFieldsForEdit(User user,
                                      Issue issueObject)

setRemoteUserInJira

public User setRemoteUserInJira(User user)
This will set the user into the JIRA authentication context (ThreadLocal) and return the prevous user who was in there. Make sure you use a try / finally block when calling this method

Parameters:
user - the user to set into the JIRA auth context
Returns:
the previous user that was in the JIRA auth context